package com.esen.controller;

import com.blade.mvc.annotation.Path;
import com.blade.mvc.annotation.Route;
import com.blade.mvc.http.Request;
import com.blade.mvc.http.Response;

@Path
public class ActionReflectXss {
	@Route(value = "/syr/rxss/form")
	public void toForm(Response response) {
		response.render("syr/rxss/form.html");
	}

	@Route(value = "/syr/rxss/checkparam")
	public void checkParam(Request request, Response response) throws Exception {
		String username = request.query("username", "");
		response.html("用户名：" + username + "已存在。");
	}
}
